<form action="{:sysuri()}" method="post" data-auto="true" class="layui-form layui-card" data-table-id="BaseTable">

    <div class="layui-card-body padding-left-40">
        <label class="layui-form-item relative block">
            <span class="help-label"><b>盒子名称</b></span>
            <input maxlength="500" class="layui-input" name="name" value='{$vo.name|default=""}'
                   vali-name="盒子名称" placeholder="请输入盒子名称">
        </label>

        <label class="layui-form-item relative block">
            <span class="help-label"><b>盒子描述</b></span>
            <textarea name="description" class="layui-textarea" placeholder="请输入盒子描述">{$vo.description|default=''}</textarea>
        </label>

        <label class="layui-form-item relative block">
            <span class="help-label"><b>标签</b></span>
            <input maxlength="500" class="layui-input" name="tags" value='{$vo.tags|default=""}'
                   vali-name="盒子标签" placeholder="请输入盒子名称">
            <span class="help-block">例如：Lucky|Beautiful|Expensive</span>
        </label>


        <label class="layui-form-item relative block">
            <span class="help-label"><b>图片</b></span>
            <label class="relative block label-required-null">
                <input class="layui-input" required vali-name="图片" placeholder="请上传图片"
                       value="{$vo.image|default=''}" name="image">
                <a class="input-right-icon layui-icon layui-icon-upload-drag" data-file="btn"
                   data-type="webp,ttf,png,jpg,jpeg" data-field="image"></a>
            </label>
        </label>

        <label class="layui-form-item relative block">
            <div class="help-label label--prev"><b>是否热门</b></div>
            <select class="layui-select" name="is_hot" lay-filter="SiteTheme">
                {foreach ['2'=>'非热门','1'=>'热门'] as $k=>$v}
                {if isset($vo.is_hot) and $vo.is_hot eq $k}
                <option selected value="{$k}">{$v}</option>
                {else}
                <option value="{$k}">{$v}</option>
                {/if}
                {/foreach}
            </select>
        </label>

        <label class="layui-form-item relative block">
            <span class="help-label"><b>开盒金额</b></span>
            <input maxlength="500" class="layui-input" name="amount" value='{$vo.amount|default=""}'
                   vali-name="开盒金额" placeholder="请输入开盒金额">
        </label>

        <label class="layui-form-item relative block">
            <span class="help-label"><b>展示商品</b></span>
            <input maxlength="500" class="layui-input" name="show_products" value='{$vo.show_products|default=""}'
                   vali-name="展示商品" placeholder="请输入展示商品">
            <span class="help-block">例如：商品ID|数量|命中概率;商品ID|数量|命中概率</span>
        </label>

        <label class="layui-form-item relative block">
            <span class="help-label"><b>RTP1</b></span>
            <input maxlength="500" class="layui-input" name="RTP1" value='{$vo.RTP1|default=""}'
                   vali-name="RTP1" placeholder="请输入RTP1">
            <span class="help-block">例如：用户价值==商品ID|商品数量|权重;商品ID|商品数量|权重</span>
        </label>

        <label class="layui-form-item relative block">
            <span class="help-label"><b>RTP2</b></span>
            <input maxlength="500" class="layui-input" name="RTP2" value='{$vo.RTP2|default=""}'
                   vali-name="RTP2" placeholder="请输入RTP2">
        </label>

        <label class="layui-form-item relative block">
            <span class="help-label"><b>RTP3</b></span>
            <input maxlength="500" class="layui-input" name="RTP3" value='{$vo.RTP3|default=""}'
                   vali-name="RTP3" placeholder="请输入RTP3">
        </label>

        <label class="layui-form-item relative block">
            <span class="help-label"><b>RTP4</b></span>
            <input maxlength="500" class="layui-input" name="RTP4" value='{$vo.RTP4|default=""}'
                   vali-name="RTP4" placeholder="请输入RTP4">
        </label>

        <label class="layui-form-item relative block">
            <span class="help-label"><b>RTP5</b></span>
            <input maxlength="500" class="layui-input" name="RTP5" value='{$vo.RTP5|default=""}'
                   vali-name="RTP5" placeholder="请输入RTP5">
        </label>
    </div>

    <div class="hr-line-dashed"></div>
    {notempty name='vo.id'}<input type='hidden' value='{$vo.id}' name='id'>{/notempty}

    <div class="layui-form-item text-center">
        <button class="layui-btn" type='submit'>保存</button>
        <button class="layui-btn layui-btn-danger" type='button' data-confirm="确定要取消吗？" data-close>取消
        </button>
    </div>

</form>